﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ThreeDPrinting.ORM;
using ThreeDPrinting.Entity;

namespace ThreeDPrinting.Pages.Buy
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //using (DBEntities entities = new DBEntities())
            //{
            //    //Insert a Record
            //    //===================================
            //    //Create the member mem obect
            //    productsCatalog mem = new productsCatalog();
            //    GridView1.DataSource = entities.productsCatalogs.ToList();
            //    GridView1.DataBind();

            //}
            //using (DBEntities entities = new DBEntities())
            //{
            //    UploadedProduct mem = new UploadedProduct();
            //    int sessionID = Convert.ToInt32(Session["memberID"]);
            //    mem = entities.UploadedProducts.SingleOrDefault(i => i.MemberID == sessionID);
            //    byte[] image = mem.UploadedFile;
            //    Response.ContentType = mem.UploadedFileType;
            //    Response.BinaryWrite(image);
            //    //uploadedProduct.ImageUrl = "~/" + mem.FileID;
            //}
        }
    }
}